package com.vote.service.impl;

import com.vote.dao.UserMapper;
import com.vote.pojo.User;
import com.vote.service.UserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Zhangxq on 2016/7/15.
 */

@Service
@Transactional(rollbackFor = Exception.class)
public class UserServiceImpl implements UserService {
    
    @Resource
    private UserMapper userMapper;

    public List<User> getAllUser(){
        List<User> list = userMapper.getAllUser();
        return  list;
    }

}
